<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>求职者信息管理</title>
    <link href="/js/bstable/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/js/bstable/css/bootstrap-table.css" rel="stylesheet" type="text/css">
    <link href="/css/table.css" rel="stylesheet" type="text/css">

    <script src="/js/vue.js"></script>
    <script src="/js/axios.min.js"></script>
</head>
<body style="background-color: #ecf0f5;font-family: 微软雅黑;color: #475059;min-width: 1000px;overflow: auto">
<div id="app">
    <!--  <div  class="notice_main">-->
    <!--    <table id="table" class="table_style" style="margin: 0 auto" > </table>-->
    <!--  </div>-->
    <script src="/js/jquery/jQuery-2.2.0.min.js"></script>
    <script src="/js/bstable/js/bootstrap.min.js"></script>
    <script src="/js/bstable/js/bootstrap-table.js"></script>
    <script src="/js/bstable/js/bootstrap-table-zh-CN.min.js"></script>
    <script src="/js/layer_v2.1/layer/layer.js"></script>

    <table class="table table-bordered  table-hover">

        <tr>
            <th type="radio">▢</th>
            <th>编号</th>
            <!--      <th>公司ID</th>-->

            <th>行业领域</th>
            <!--      <th>职位ID</th>-->
            <th>职位</th>
            <th>职位类型</th>
            <th>薪资</th>
            <th>经验要求</th>
            <th>学历要求</th>
            <!--      <th width="275">岗位职责</th>-->
            <th>工作区域(线上/线下)</th>
            <th>工作时间</th>
            <th>创建日期</th>
            <th>状态</th>
        </tr>
        <tr v-for="(item,index) in positionList" >
            <td><label>
                <input type="checkbox"   id="inlinecheckbox1" value="true">
            </label></td>
            <td> {{index+1}} </td>
            <!--      <td>{{item.company_id}}</td>-->

            <td>{{item.company_type}}</td>
            <!--      <td>{{item.position_id}}</td>-->
            <td>{{item.job}}</td>
            <td>{{item.job_type}}</td>
            <td>{{item.job_pay}}</td>
            <td>{{item.experience}}</td>
            <td>{{item.education}}</td>
            <!--      <td>{{item.job_duties}}</td>-->
            <td>{{item.company_site}}</td>
            <td>{{item.company_time}}</td>
            <td>{{item.create_date}}</td>
            <td>{{item.position_state}}</td>
             </tr>
    </table>
</div>
</body>
</html>
<script>
    new Vue({
        el:"#app",
        data:{
            positionList:[]
        },
        methods:{

        },
        mounted() {
            var _this = this
            var company_id = window.localStorage.getItem("company_id")
            console.log("主键为："+ company_id)
            axios.get('/position/post2',{
                params:{
                    company_id:company_id
                }
            }).then(function (response) {
                _this.positionList=response.data;
                console.log(response.data);
            })
                .catch(function (error) {
                    console.log(error);
                });

        }
    })
</script>